//
//  SimpleView.swift
//  TanTan_Kotlin
//
//  Created by EDY on 5/26/25.
//

import SwiftUI

struct SimpleView : View {
    var body: some View {
        NavigationView {
            VStack {
                HStack {
                    NavigationLink(destination: ProfileView()){
                        Text("个人简介")
                            .padding()
                            .background(Color.blue)
                            .foregroundColor(.white)
                            .cornerRadius(10)
                    }
                    NavigationLink(destination: StateExampleView()){
                        Text("计数器")
                            .padding()
                            .background(Color.blue)
                            .foregroundColor(.white)
                            .cornerRadius(10)
                    }
                    NavigationLink(destination: TimerView()){
                        Text("计数器")
                            .padding()
                            .background(Color.blue)
                            .foregroundColor(.white)
                            .cornerRadius(10)
                    }
                }
                    HStack {
                        NavigationLink(destination: TaskView()){
                            Text("任务管理器")
                                .padding()
                                .background(Color.blue)
                                .foregroundColor(.white)
                                .cornerRadius(10)
                        }
                        NavigationLink(destination: SimpleAnimationView()){
                            Text("动画及手势")
                                .padding()
                                .background(Color.blue)
                                .foregroundColor(.white)
                                .cornerRadius(10)
                        }
                        NavigationLink(destination: CustomAnimationView()){
                            Text("自定义动画")
                                .padding()
                                .background(Color.blue)
                                .foregroundColor(.white)
                                .cornerRadius(10)
                        }
                    }
                    
                    HStack {
                        NavigationLink(destination: CombinedAnimationView()){
                            Text("组合动画")
                                .padding()
                                .background(Color.blue)
                                .foregroundColor(.white)
                                .cornerRadius(10)
                        }
                        CustomButton(title: "自定义按钮家") {
                            print("自定义按钮")
                        }
                        CustomCounterView()
                    }
                    TwoColumnView(leftTitle: "左列标题", leftContent: {
                        Text("左列项目 1")
                        Text("左列项目 2")
                    }, rightTitle: "右列标题", rightContent: {
                        Text("右列项目 1")
                        Text("右列项目 2")
                    })
                    .padding()
                    .background(.green)
            }
        }
    }
}

#Preview {
    SimpleView()
}
